//
//  DismissAnimation.h
//  PayViewDemo
//
//  Created by _Finder丶Tiwk on 15/6/11.
//  Copyright (c) 2015年 _Finder丶Tiwk. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

/*!
 *  @author _Finder丶Tiwk, 15-06-11 20:06:36
 *  @brief  控制器dismiss动画方式
 */
typedef NS_ENUM(NSUInteger, KDismissAnimationType){
    /*!
     *  @author _Finder丶Tiwk, 15-06-11 20:06:36
     *  @brief  控制器从左住右滑出屏幕的效果
     */
    DismissSlideToRight               =  0,
    /*!
     *  @author _Finder丶Tiwk, 15-06-11 20:06:36
     *  @brief  控制器视图由大到小消失的效果
     */
    DismissScaleFromBiglToSmal   =  1,
    /*!
     *  @author _Finder丶Tiwk, 15-06-11 20:06:36
     *  @brief  控制器背景颜色从半透明到透明
     */
    DismissEaseOut                            =  2,
    /*!
     *  @author _Finder丶Tiwk, 15-06-11 20:06:54
     *  @brief  默认为从左住右滑出
     */
    DismissSlideToBottom     =   3,
    /*!
     *  @author ZhangHonglin, 15-27-11 17:00:00
     *  @brief  默认为从左住右滑出
     */
    DismissDefault                             =    DismissSlideToRight
};



@interface DismissAnimation : NSObject<UIViewControllerAnimatedTransitioning>
/*!
 *  @author _Finder丶Tiwk, 15-06-11 20:06:36
 *  @brief  控制器dismiss动画方式
 */
@property (nonatomic,assign)   KDismissAnimationType animationType;
/*!
 *  @author _Finder丶Tiwk, 15-06-12 12:06:35
 *  @brief  动画时间
 */
@property (nonatomic,assign)   NSTimeInterval  animationDuration;

+(instancetype)animationByDismissType:(KDismissAnimationType)dismissType;



@end
